package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.path.DocTemplatesQueryByIdParamPath;
import net.yondervision.hrfsp.sdk.esign.domain.response.DocTemplatesQueryByIdResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/09/27 22:29
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class DocTemplatesQueryByIdRequest extends AbstractESignRequest implements
    ESignRequest<DocTemplatesQueryByIdResponse> {

  private DocTemplatesQueryByIdParamPath docTemplatesQueryByIdParamPath;

  public DocTemplatesQueryByIdRequest(
      DocTemplatesQueryByIdParamPath docTemplatesQueryByIdParamPath) {
    this.docTemplatesQueryByIdParamPath = docTemplatesQueryByIdParamPath;
    this.setParamPath(docTemplatesQueryByIdParamPath);
  }

  @Override
  public String getUrl() {
    return "/docTemplates/{templateId}";
  }

  @Override
  public Method getMethodType() {
    return Method.GET;
  }

  @Override
  public Class<DocTemplatesQueryByIdResponse> getResponseClass() {
    return DocTemplatesQueryByIdResponse.class;
  }

}
